<?php

namespace App\Models;

use Encore\Admin\Traits\ModelTree;
use App\Models\BookModel;

class ChapterModel extends BaseModel
{
    const STATUS_DRAFT = 0;
    const STATUS_PUBLISH = 1;
    const STATUS_CLOSE = 2;
    protected $table = 'chapter';

    public function book()
    {
        return $this->belongsTo(BookModel::class);
    }

}
